/**
 * Created by yuming619 on 2016/11/25.
 */
angular.module('app.service.auth', ['ngResource'])

    .service('LoginService', ['$resource', function ($resource) {
        this.login = function (manager, success, error) {
            var resource = $resource(authurl + "manager/login");
            return resource.save(manager, success, error);
        };
        this.register = function (manager) {
            var resource = $resource(authurl + "manager/insert");
            return resource.save(manager);
        };
    }])
